// 登录、注册、找回密码
const accountView = r =>
  require.ensure(
    [],
    () => r(require("@/views/account/accountView.vue")),
    "accountView"
  );
const loginPage = r =>
  require.ensure(
    [],
    () => r(require("@/views/account/login.vue")),
    "loginPage"
  );
const registerPage = r =>
  require.ensure(
    [],
    () => r(require("@/views/account/register.vue")),
    "registerPage"
  );
const forgetPage = r =>
  require.ensure(
    [],
    () => r(require("@/views/account/forget.vue")),
    "forgetPage"
  );

export default {
  path: "/accountView",
  component: accountView,
  name: "accountView",
  children: [
    {
      path: "/login",
      name: "login",
      component: loginPage
    },
    {
      path: "/register",
      name: "register",
      component: registerPage
    },
    {
      path: "/forget",
      name: "forget",
      component: forgetPage
    }
  ]
};
